import {get,post} from "../../utils/request"
// 定义接口类型
interface Iadd{
    id:number,
    pid:number,
    name:string
}
// 列表数据
const dementList = (params:any)=>{
    return get("department/list",params)
}
// 添加
const addFather = (params:Iadd) =>{
    return post("department/add",params)
}
// 删除
const deleData = (id:any)=>{
    return get("department/delete",id)
}
export {dementList , addFather , deleData}